package main

import (
	"fmt"
	"unsafe"
)

func main() {
	var num1 int8 = 23
	fmt.Print(num1)
	var num2 uint8 = 255
	fmt.Print(num2)
	var num3 = 40
	// 查看数据类型
	fmt.Printf("num3的数据类型是：%T", num2)
	fmt.Println(unsafe.Sizeof(num3))

	var n3 int64 = 888888
	var n4 int8 = int8(n3)
	fmt.Println(n4)
	var n5 int8 = 127
	var n6 int64 = int64(n5)
	fmt.Println(n6)
}
